package com.reliable.api.param.announcements;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * @author yuyantao
 * ClassName: AnnouncementsSaveParam
 * date: 2025/8/27 9:43
 */
@Data
public class AnnouncementsSaveParam {

    /**
     * 标题
     */
    @ApiModelProperty(value = "标题", position = 0)
    private String title;

    /**
     * 公告内容
     */
    @ApiModelProperty(value = "公告内容", position = 1)
    private String content;



    /**
     * 公告类型：1欢迎
     */
    @ApiModelProperty(value = "公告类型：1欢迎", position = 2)
    private Integer types;

    /**
     * 状态：1.草稿 2.已发布 3.已下架
     */
    @ApiModelProperty(value = "状态：1.草稿 2.已发布 3.已下架", position = 3)
    private Integer status;

    /**
     * 到期时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "到期时间", position = 4)
    private Date expireTime;

    /**
     * 是否指定：0否.1.是
     */
    @ApiModelProperty(value = "是否指定：0否.1.是", position = 5)
    private Integer isTop;
}
